package wsz.sqlSession;

import wsz.pojo.Configuration;
import wsz.pojo.MappedStatement;

import java.util.List;

/**
 * 执行sql接口
 * @author wsz
 * @date 2021/10/1 8:13
 **/
public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement statement, Object... params) throws Exception;

    int update(Configuration configuration, MappedStatement statement, Object... params) throws Exception;

    int delete(Configuration configuration, MappedStatement statement, Object... params) throws Exception;

}
